<template>
  <div class="vertifyLogin">
    <div class="vertifyLogin_top">
      <div class="vertifyLogin_top_main">
        <span class="vertifyLogin_top_phone activeing">
          {{ phone }}
        </span>
        <span class="vertifyLogin_top_password" @click="toLogin">
          {{ password }}
        </span>
      </div>
    </div>

    <inputVertifyLogin :content="active"></inputVertifyLogin>
    <div class="vertifyLogin_thirdparty">
      <div>第三方登录</div>
    </div>
    <div class="vertifyLogin_wechat">
      <div class="vertifyLogin_wechat_login">
        <div class="vertifyLogin_wechat_login_box">
          <div class="vertifyLogin_wechat_login_img">
            <img src="@/assets/background/2.png" alt="" />
          </div>
          <div>微信</div>
        </div>
        <div class="vertifyLogin_wechat_login_box">
          <div class="vertifyLogin_wechat_login_img">
            <img src="@/assets/background/3.png" alt="" />
          </div>
          <div>QQ</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import { Toast } from "vant";
import inputVertifyLogin from "./input-vertifyLogin.vue";
export default {
  components: { inputVertifyLogin },
  data() {
    return {
      active: "phone",
      phone: "手机登录",
      password: "密码登录",
    };
  },
  methods: {
    toLogin() {
      let temp = this.password;
      this.password = this.phone;
      this.phone = temp;
      this.active = this.phone == "密码登录" ? "password" : "phone";
    },
  },
};
</script>

<style lang="scss" scope>
.vertifyLogin {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: url("~assets/background/1.png") no-repeat;
  background-position: center;
  background-size: 150%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  background-color: #fafafa;
  padding-top: 150px;
  &_thirdparty {
    width: 100%;
    text-align: center;
    font-size: 16px;
  }
  &_wechat {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    &_login {
      display: flex;
      width: 50%;
      &_img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        & img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      &_box {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-direction: column;
      }
    }
  }
  &_top {
    position: relative;
    &_password {
      position: absolute;
      right: 15%;
      bottom: 0;
      font-size: 14px;
    }
    &_main {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
.activeing {
  font-size: 24px;
  font-weight: 540;
  color: #333;
}
</style>
